fontchooser: Use gtk_list_store_insert_with_values()
authorBenjamin Otte <otte@redhat.com>
Fri, 16 Sep 2011 08:21:58 +0000 (10:21 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 19 Sep 2011 20:11:05 +0000 (22:11 +0200)
... instead of append() + set_values()

gtk/gtkfontchooserwidget.c

index c62582b9c156b4a639e325f993987f7b681d63ce..71475f9cf7beb3baa51ba5f7c49aba4561bab397 100644 (file)
@@ -776,13 +776,12 @@ populate_list (GtkFontChooserWidget *fontchooser,
                                          font_desc,
                                          fontchooser->priv->preview_text);
 
-          gtk_list_store_append (model, &iter);
-          gtk_list_store_set (model, &iter,
-                              FAMILY_COLUMN, families[i],
-                              FACE_COLUMN, faces[j],
-                              PREVIEW_TITLE_COLUMN, family_and_face,
-                              PREVIEW_TEXT_COLUMN, tmp,
-                              -1);
+          gtk_list_store_insert_with_values (model, &iter, -1,
+                                             FAMILY_COLUMN, families[i],
+                                             FACE_COLUMN, faces[j],
+                                             PREVIEW_TITLE_COLUMN, family_and_face,
+                                             PREVIEW_TEXT_COLUMN, tmp,
+                                             -1);
 
           /* Select the current font,
            * the default font/face from the theme,